//引入请求库
import http from '../utils/http2.js'; 
import { da } from "@faker-js/faker";

/**
 * 查询货代
 * @param {*} data 
 * @returns 
 */
export function queryFreightInquiry(data) {
  return http.post("/api/freightInquiry/list", data);
}

/**
 * 添加货代
 * @param {*} data 
 * @returns 
 */
export function addFreightInquiry(data) {
  return http.post("/api/freightInquiryList", data);
}

/**
 * 根据id查询货代信息
 * @param {*} id
 * @returns 
 */
export function getFreightInquiryById(id) {
  return http.get("/api/freightInquiry/id="+id,{});
}


/**
 * 
 * @param {*} data 
 * @returns 
 */
export function updateFreightInquiry(data) {
  return http.put("/api/freightInquiry", data);
}

